#pragma once
#include <iostream>
using namespace std;


typedef int DataType;
typedef struct HuffmanTree
{
	DataType data;
	int left;
	int right;
	int parent;

}HFT;

void Select(HFT** HT, int n, int* s1, int* s2);
void CreatHuffmanTress(HFT** HT, DataType* x, int n);